import request from '@/utils/request'

const api_name = 'system/folder'

export default {
    findNodes() {
        return request({
            url: `${api_name}`,
            method: 'get'
        })
    },
    save(folder){
        return request({
            url: `${api_name}`,
            method: 'post',
            data: folder
        })
    },
    deleteById(id){
        return request({
            url: `${api_name}/${id}`,
            method: 'delete'
        })
    }
}
